import http from "@/api";

export const getSpwebListApi = async (data) =>
  await http.post("spweb/page/list", data);

export const insertSpwebApi = async (data) =>
  await http.post("spweb/insert", data);

export const deleteSpwebApi = async (data) =>
  await http.post("spweb/delete", data);

export const getSpwebDetailApi = async (id) =>
  await http.get(`spweb/get/${id}`);

export const updateSpwebApi = async (data) =>
  await http.post("spweb/update", data);
